//
//  GPXParser.h
//  Location
//
//  Created by Dylan on 2024/5/31.
//

#import <Foundation/Foundation.h>
#import "GPXWaypoint.h"

NS_ASSUME_NONNULL_BEGIN

@interface GPXParser : NSObject<NSXMLParserDelegate>
@property (nonatomic, strong) NSMutableArray<GPXWaypoint *> *waypoints;
@property (nonatomic, strong) GPXWaypoint *currentWaypoint;
@property (nonatomic, strong) NSString *currentElement;

- (NSArray<GPXWaypoint *> *)parseFileAtURL:(NSURL *)fileURL;
@end

NS_ASSUME_NONNULL_END
